package com.cph.usercenter.service.user;

import com.cph.usercenter.dao.user.UserMapper;
import com.cph.usercenter.domain.entity.user.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.ServiceMode;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author cph
 * @Date 2020/9/25 17:34
 * @Version 1.0
 */
@Service
@Slf4j
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findById ( Integer id){
        log.info("我被请求拉~");
        return userMapper.selectByPrimaryKey(id);
    }
}
